package route

import (
	"github.com/gin-gonic/gin"
	"github.com/vueadmin/app/api/internal/handler/base"
	"github.com/vueadmin/app/api/internal/svc"
	"github.com/vueadmin/middleware"
	"github.com/vueadmin/utils/conv"
)

type Base struct{}

func (Base) RegisterRoute(route *gin.Engine, svcCtx *svc.ServiceContext) {
	r := route.Group(svcCtx.Config.Prefix)
	r.POST("/Base/upload", middleware.JwtVerifyMiddleware(conv.String(svcCtx.Config.Jwt)),func(c *gin.Context) { base.Upload(c, svcCtx) })
}
